<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>Examples</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<link href="" rel="stylesheet">
	<script>
		window.onload=function () {
			var str = 'fjsdfsdafjk';

			var re = new RegExp('a','i');  //i--ignore 忽略大小写
			alert(str.search(re));

			var pre = /A/i;
			alert(str.search(pre)); 
		}
	</script>
</head>
<body>
    serch
  <li><a href="index.html">index.html</a></li>
	<li><a href="index2.html">index2.html</a></li>
	<li><a href="index3.html">index3.html</a></li>
	<li><a href="index4.html">index4.html</a></li>
	<li><a href="index5.html">index5.html</a></li>
	<li><a href="index6.html">index6.html</a></li>
	<li><a href="index7.html">index7.html</a></li>
	<li><a href="index8.html">index8.html</a></li>
</body>
</html>